#include <stdio.h>     
#include<stddef.h>
struct stu 
{
	char a;
	char b[10];
	char c;
};

int main()
{
	printf("offsetof(struct foo,a) is %d\n", (int)offsetof(struct stu,a));
	printf("offsetof(struct foo,b) is %d\n", (int)offsetof(struct stu,b));
	printf("offsetof(struct foo,c) is %d\n", (int)offsetof(struct stu,c));

	return 0;
}